package cn.sxt.oop;

/**
 * 测试静态内部类
 */
public class TestStaticInnerClass {
    public static void main(String[] args) {
        //创建静态内部类
        Outer2.Inner2 inner2 = new Outer2.Inner2();
        inner2.testStaticInner2();
    }
}

class Outer2{

    //静态内部类就是用static修饰的
    static class Inner2{
        public void testStaticInner2(){
            System.out.println("testStaticInner2()");
        }
    }
}
